<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>首页 - 梦想生活规划师</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            font-family: 'HarmonyOS Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
            height: 100vh;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }
        .prototype-container {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            flex: 1;
            position: relative;
        }
        .phone-frame {
            width: 375px;
            height: 812px;
            background-color: #f5f7fa;
            border-radius: 40px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            overflow: hidden;
            position: relative;
        }
        .status-bar {
            height: 44px;
            background-color: transparent;
            padding: 0 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: #333;
            font-size: 12px;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            z-index: 10;
        }
        .status-bar .time {
            font-weight: 600;
        }
        .status-bar .icons {
            display: flex;
            gap: 5px;
        }
        .home-container {
            height: 100%;
            width: 100%;
            overflow-y: auto;
            background-color: #f5f7fa;
        }
        .home-header {
            padding: 60px 20px 20px;
            background-color: #1976d2;
            color: white;
            border-radius: 0 0 20px 20px;
        }
        .user-greeting {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        .greeting-text {
            display: flex;
            flex-direction: column;
        }
        .greeting {
            font-size: 16px;
            opacity: 0.9;
            margin-bottom: 5px;
        }
        .user-name {
            font-size: 20px;
            font-weight: bold;
        }
        .user-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background-color: #64b5f6;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 20px;
            border: 2px solid white;
        }
        .notification-icon {
            position: relative;
            font-size: 22px;
        }
        .notification-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            width: 18px;
            height: 18px;
            background-color: #ff5722;
            border-radius: 50%;
            color: white;
            font-size: 12px;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }
        .section-title {
            font-size: 18px;
            font-weight: bold;
            color: #333;
        }
        .see-all {
            font-size: 14px;
            color: #1976d2;
            text-decoration: none;
        }
        .home-content {
            padding: 20px;
        }
        .dreams-container {
            margin-bottom: 30px;
        }
        .dreams-scroll {
            display: flex;
            overflow-x: auto;
            padding: 5px 0;
            gap: 15px;
            scrollbar-width: none; /* Firefox */
            -ms-overflow-style: none; /* IE and Edge */
        }
        .dreams-scroll::-webkit-scrollbar {
            display: none; /* Chrome, Safari, Opera */
        }
        .dream-card {
            min-width: 150px;
            width: 150px;
            height: 180px;
            background-color: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            display: flex;
            flex-direction: column;
        }
        .dream-image {
            height: 80px;
            background-size: cover;
            background-position: center;
        }
        .dream-details {
            padding: 12px;
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        .dream-title {
            font-size: 14px;
            font-weight: bold;
            color: #333;
            margin-bottom: 6px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .dream-category {
            font-size: 12px;
            color: #666;
            margin-bottom: 10px;
        }
        .dream-progress {
            margin-top: auto;
        }
        .progress-text {
            display: flex;
            justify-content: space-between;
            font-size: 12px;
            color: #666;
            margin-bottom: 5px;
        }
        .progress-bar {
            height: 6px;
            background-color: #e0e0e0;
            border-radius: 3px;
            overflow: hidden;
        }
        .progress-fill {
            height: 100%;
            background-color: #1976d2;
            border-radius: 3px;
        }
        .tasks-container {
            margin-bottom: 30px;
        }
        .task-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        .task-item {
            background-color: white;
            border-radius: 12px;
            padding: 15px;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .task-checkbox {
            width: 22px;
            height: 22px;
            border-radius: 50%;
            border: 2px solid #1976d2;
            display: flex;
            justify-content: center;
            align-items: center;
            color: white;
            cursor: pointer;
        }
        .task-checkbox.completed {
            background-color: #1976d2;
        }
        .task-info {
            flex: 1;
        }
        .task-title {
            font-size: 15px;
            color: #333;
            margin-bottom: 4px;
            font-weight: 500;
        }
        .task-details {
            display: flex;
            gap: 8px;
            align-items: center;
            font-size: 12px;
            color: #666;
        }
        .task-dream {
            background-color: #e3f2fd;
            padding: 3px 8px;
            border-radius: 4px;
            color: #1976d2;
        }
        .task-time {
            display: flex;
            align-items: center;
            gap: 3px;
        }
        .priority-badge {
            margin-left: auto;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background-color: #ff9800;
        }
        .priority-badge.high {
            background-color: #f44336;
        }
        .priority-badge.low {
            background-color: #4caf50;
        }
        .recommendations-container {
            margin-bottom: 80px;
        }
        .recommendation-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        .recommendation-item {
            background-color: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
        }
        .recommendation-image {
            height: 120px;
            background-size: cover;
            background-position: center;
        }
        .recommendation-details {
            padding: 15px;
        }
        .recommendation-type {
            font-size: 12px;
            color: #1976d2;
            margin-bottom: 5px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .recommendation-title {
            font-size: 16px;
            font-weight: bold;
            color: #333;
            margin-bottom: 8px;
        }
        .recommendation-description {
            font-size: 14px;
            color: #666;
            margin-bottom: 10px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .recommendation-metrics {
            display: flex;
            gap: 15px;
            font-size: 12px;
            color: #777;
        }
        .recommendation-metric {
            display: flex;
            align-items: center;
            gap: 5px;
        }
        .bottom-navigation {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 70px;
            background-color: white;
            display: flex;
            justify-content: space-around;
            align-items: center;
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
            border-radius: 0 0 40px 40px;
            padding-bottom: 10px;
        }
        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 60px;
            gap: 5px;
            cursor: pointer;
            text-decoration: none;
        }
        .nav-icon {
            font-size: 22px;
            color: #757575;
        }
        .nav-icon.active {
            color: #1976d2;
        }
        .nav-text {
            font-size: 12px;
            color: #757575;
        }
        .nav-text.active {
            color: #1976d2;
            font-weight: 500;
        }
        .navigation {
            width: 100%;
            padding: 20px;
            background-color: #f5f7fa;
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
            display: flex;
            justify-content: space-between;
        }
        .back-button, .home-button, .next-button {
            background-color: #1976d2;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 5px;
            cursor: pointer;
            text-decoration: none;
            font-size: 14px;
            display: inline-flex;
            align-items: center;
            transition: background-color 0.3s ease;
        }
        .back-button:hover, .home-button:hover, .next-button:hover {
            background-color: #1565c0;
        }
    </style>
</head>
<body>
    <div class="prototype-container">
        <div class="phone-frame">
            <div class="status-bar">
                <div class="time">20:30</div>
                <div class="icons">
                    <div class="signal">📶</div>
                    <div class="wifi">📡</div>
                    <div class="battery">🔋</div>
                </div>
            </div>
            <div class="home-container">
                <div class="home-header">
                    <div class="user-greeting">
                        <div class="greeting-text">
                            <span class="greeting">下午好，</span>
                            <span class="user-name">张三</span>
                        </div>
                        <div class="notification-icon">
                            🔔
                            <span class="notification-badge">3</span>
                        </div>
                    </div>
                    <div class="user-avatar">张</div>
                </div>

                <div class="home-content">
                    <div class="dreams-container">
                        <div class="section-header">
                            <h2 class="section-title">我的梦想</h2>
                            <a href="dream_list.html" class="see-all">查看全部</a>
                        </div>
                        <div class="dreams-scroll">
                            <div class="dream-card">
                                <div class="dream-image" style="background-image: url('https://images.unsplash.com/photo-1546410531-bb4caa6b424d');"></div>
                                <div class="dream-details">
                                    <h3 class="dream-title">学习英语</h3>
                                    <div class="dream-category">学习</div>
                                    <div class="dream-progress">
                                        <div class="progress-text">
                                            <span>进度</span>
                                            <span>35%</span>
                                        </div>
                                        <div class="progress-bar">
                                            <div class="progress-fill" style="width: 35%;"></div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="dream-card">
                                <div class="dream-image" style="background-image: url('https://images.unsplash.com/photo-1530137234839-95979146bdd2');"></div>
                                <div class="dream-details">
                                    <h3 class="dream-title">完成马拉松</h3>
                                    <div class="dream-category">健康</div>
                                    <div class="dream-progress">
                                        <div class="progress-text">
                                            <span>进度</span>
                                            <span>20%</span>
                                        </div>
                                        <div class="progress-bar">
                                            <div class="progress-fill" style="width: 20%;"></div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="dream-card">
                                <div class="dream-image" style="background-image: url('https://images.unsplash.com/photo-1503917988258-f87a78e3c995');"></div>
                                <div class="dream-details">
                                    <h3 class="dream-title">环游欧洲</h3>
                                    <div class="dream-category">旅行</div>
                                    <div class="dream-progress">
                                        <div class="progress-text">
                                            <span>进度</span>
                                            <span>0%</span>
                                        </div>
                                        <div class="progress-bar">
                                            <div class="progress-fill" style="width: 0%;"></div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="dream-card">
                                <div class="dream-image" style="background-image: url('https://images.unsplash.com/photo-1455390582262-044cdead277a');"></div>
                                <div class="dream-details">
                                    <h3 class="dream-title">写一本小说</h3>
                                    <div class="dream-category">创作</div>
                                    <div class="dream-progress">
                                        <div class="progress-text">
                                            <span>进度</span>
                                            <span>15%</span>
                                        </div>
                                        <div class="progress-bar">
                                            <div class="progress-fill" style="width: 15%;"></div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="tasks-container">
                        <div class="section-header">
                            <h2 class="section-title">今日任务</h2>
                            <a href="task_list.html" class="see-all">查看全部</a>
                        </div>
                        <div class="task-list">
                            <div class="task-item">
                                <div class="task-checkbox"></div>
                                <div class="task-info">
                                    <h3 class="task-title">英语口语练习与外教对话</h3>
                                    <div class="task-details">
                                        <span class="task-dream">学习英语</span>
                                        <span class="task-time">⏰ 今天 18:00</span>
                                    </div>
                                </div>
                                <div class="priority-badge high"></div>
                            </div>
                            <div class="task-item">
                                <div class="task-checkbox"></div>
                                <div class="task-info">
                                    <h3 class="task-title">完成10公里长跑训练</h3>
                                    <div class="task-details">
                                        <span class="task-dream">完成马拉松</span>
                                        <span class="task-time">⏰ 今天 17:30</span>
                                    </div>
                                </div>
                                <div class="priority-badge"></div>
                            </div>
                            <div class="task-item">
                                <div class="task-checkbox completed">✓</div>
                                <div class="task-info">
                                    <h3 class="task-title">完成小说第一章修改</h3>
                                    <div class="task-details">
                                        <span class="task-dream">写一本小说</span>
                                        <span class="task-time">✓ 已完成</span>
                                    </div>
                                </div>
                                <div class="priority-badge"></div>
                            </div>
                        </div>
                    </div>

                    <div class="recommendations-container">
                        <div class="section-header">
                            <h2 class="section-title">为您推荐</h2>
                            <a href="resource.html" class="see-all">查看全部</a>
                        </div>
                        <div class="recommendation-list">
                            <div class="recommendation-item">
                                <div class="recommendation-image" style="background-image: url('https://images.unsplash.com/photo-1546410531-bb4caa6b424d');"></div>
                                <div class="recommendation-details">
                                    <div class="recommendation-type">学习资源</div>
                                    <h3 class="recommendation-title">英语口语提升技巧</h3>
                                    <p class="recommendation-description">掌握这些口语练习方法，让你的英语表达更流利自然，轻松应对各种日常交流场景。</p>
                                    <div class="recommendation-metrics">
                                        <div class="recommendation-metric">👁️ 1258</div>
                                        <div class="recommendation-metric">⭐ 4.8</div>
                                        <div class="recommendation-metric">👤 35人关联</div>
                                    </div>
                                </div>
                            </div>
                            <div class="recommendation-item">
                                <div class="recommendation-image" style="background-image: url('https://images.unsplash.com/photo-1486218119243-13883505764c');"></div>
                                <div class="recommendation-details">
                                    <div class="recommendation-type">社区动态</div>
                                    <h3 class="recommendation-title">我的马拉松训练心得</h3>
                                    <p class="recommendation-description">从零基础到完成半程马拉松，分享我的训练计划和经验，希望对你有所帮助。</p>
                                    <div class="recommendation-metrics">
                                        <div class="recommendation-metric">👁️ 857</div>
                                        <div class="recommendation-metric">👍 162</div>
                                        <div class="recommendation-metric">💬 48</div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="bottom-navigation">
                    <a href="home.html" class="nav-item">
                        <div class="nav-icon active">🏠</div>
                        <div class="nav-text active">首页</div>
                    </a>
                    <a href="dream_list.html" class="nav-item">
                        <div class="nav-icon">✨</div>
                        <div class="nav-text">梦想</div>
                    </a>
                    <a href="community.html" class="nav-item">
                        <div class="nav-icon">🌐</div>
                        <div class="nav-text">社区</div>
                    </a>
                    <a href="resource.html" class="nav-item">
                        <div class="nav-icon">📚</div>
                        <div class="nav-text">资源</div>
                    </a>
                    <a href="profile.html" class="nav-item">
                        <div class="nav-icon">👤</div>
                        <div class="nav-text">我的</div>
                    </a>
                </div>
            </div>
        </div>
        <div class="navigation">
            <a href="login.html" class="back-button">← 上一页</a>
            <a href="index.html" class="home-button">返回目录</a>
            <a href="dream_list.html" class="next-button">下一页 →</a>
        </div>
    </div>
</body>
</html> 